package com.design.twords.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.design.twords.R;
import com.design.twords.utils.MyApplication;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

/**
 * Create by Alen
 * Time:  23:14
 */
public class AboutActivity extends AppCompatActivity {

    private ImageView back;
    private TextView version;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        initView();
        MyApplication.getInstance().addActivity(this);

        version.setText(R.string.version);

        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
    }

    private void initView() {
        back = findViewById(R.id.about_back);
        version = findViewById(R.id.about_version);

    }
}
